<template>
  <el-card style="padding: 5px">
    <div class="card-header">
      <span>{{ title }}</span>
      <svg
        t="1662036362384"
        class="icon"
        viewBox="0 0 1024 1024"
        version="1.1"
        xmlns="http://www.w3.org/2000/svg"
        p-id="2668"
        width="46"
        height="46"
      >
        <path
          d="M512 1024A512 512 0 1 1 512 0a512 512 0 0 1 0 1024z m3.008-92.992a416 416 0 1 0 0-832 416 416 0 0 0 0 832zM448 448h128v384H448V448z m0-256h128v128H448V192z"
          fill="#262626"
          p-id="2669"
        ></path>
      </svg>
    </div>
    <div calss="card-content">{{ number }}</div>
    <div class="card-charts">
      <slot name="charts"> </slot>
    </div>
    <div class="card-footer">
      <slot name="footer"></slot>
    </div>
  </el-card>
</template>

<script>
export default {
  name: "Detail",
  props: ["title", "number"],
};
</script>

<style>
.card-header {
  display: flex;
  justify-content: space-between;
  color: aquamarine;
  font-size: 16px;
}
.card-charts {
  height: 40px;
  margin-bottom: 10px;
}
.card-footer {
  border-top: 1px solid black;
}
</style>